//
//  Utils.h
//  AppManagement
//
//  Created by 珍 on 16/5/19.
//  Copyright © 2016年 abb.is.dev.eas. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Utils : NSObject<NSFileManagerDelegate>
#pragma mark - document

+ (NSString *)getDocumentPath;

+ (BOOL)saveToDocumentWithFileName:(NSString *)fileName dict:(NSDictionary *)dict;

+ (NSDictionary *)readFromDocumentWithFileName:(NSString *)fileName;

+ (BOOL)deleteFromDocumentWithFileName:(NSString *)fileName;



#pragma mark - Caches

+ (NSString *)getCachesPath;

+ (BOOL)saveToCachesWithFileName:(NSString *)fileName dict:(NSDictionary *)dict;

+ (NSDictionary *)readFromCachesWithFileName:(NSString *)fileName;

+ (BOOL)deleteFromCachesWithFileName:(NSString *)fileName;



+ (void) copyFolderToPath:(NSString *)path SuccessAction:(void (^)(void))action;

@end
